/**
 * @file _axiom-blockquote.scss
 * @description AxiomBlockquote 组件样式
 */

.axiom-blockquote {
  border-left: var(--axiom-blockquote-border-width, 4px) solid var(--axiom-primary-color);
  padding: var(--axiom-blockquote-padding, var(--axiom-spacing-lg) 20px);
  margin: var(--axiom-blockquote-margin, 20px 0);
  background-color: var(--axiom-bg-color-secondary);
  border-radius: 0 var(--axiom-border-radius-large) var(--axiom-border-radius-large) 0;
  font-style: italic;
  position: relative;
  
  &__content {
    color: var(--axiom-text-color-secondary);
    line-height: 1.6;
    margin: 0;
  }
  
  &__author {
    margin-top: var(--axiom-blockquote-author-margin-top, var(--axiom-spacing-md));
    font-style: normal;
    font-weight: 600;
    color: var(--axiom-text-color);
    font-size: var(--axiom-blockquote-author-font-size, 0.9em);
    
    &::before {
      content: '— ';
    }
  }
  
  // 引用类型样式
  &--success {
    border-left-color: var(--axiom-success-color);
  }
  
  &--warning {
    border-left-color: var(--axiom-warning-color);
  }
  
  &--danger {
    border-left-color: var(--axiom-danger-color);
  }
  
  &--info {
    border-left-color: var(--axiom-info-color);
  }
}

html.theme-cyberpunk {
  .axiom-blockquote {
    background-color: var(--glass-bg);
    border-image: linear-gradient(to bottom, var(--primary-color), var(--primary-color-hover)) 1;
    border-image-slice: 1;
    border-left-width: 4px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    backdrop-filter: var(--backdrop-blur);

    &--success {
      border-image: linear-gradient(to bottom, var(--success-color), #00ffaa) 1;
    }

    &--warning {
      border-image: linear-gradient(to bottom, var(--warning-color), #ffcc33) 1;
    }

    &--danger {
      border-image: linear-gradient(to bottom, var(--danger-color), #ff0055) 1;
    }

    &--info {
      border-image: linear-gradient(to bottom, var(--info-color), #00bbff) 1;
    }
  }
}

html.theme-neon .axiom-blockquote,
html.theme-rainbow-cyber .axiom-blockquote {
  background-color: var(--glass-bg);
  border-left-width: 4px;
  border-left-style: solid;
  border-image-slice: 1;
  box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.2);
  backdrop-filter: var(--backdrop-blur);

  &,
  &--success,
  &--warning,
  &--danger,
  &--info {
    border-image-source: linear-gradient(to bottom, var(--primary-color), var(--primary-color-hover));
  }

  &--success {
    border-image-source: linear-gradient(to bottom, var(--success-color), var(--primary-color-hover));
  }
  &--warning {
    border-image-source: linear-gradient(to bottom, var(--warning-color), var(--primary-color-hover));
  }
  &--danger {
    border-image-source: linear-gradient(to bottom, var(--danger-color), var(--secondary-color));
  }
  &--info {
    border-image-source: linear-gradient(to bottom, var(--info-color), var(--primary-color));
  }
} 